import fetch from '@/utils/fetch'

export function save(query) {
  return fetch({
    url: '/alarmContent/save',
    method: 'POST',
    params: query
  })
}

export function update(query) {
  return fetch({
    url: '/alarmContent/update',
    method: 'POST',
    params: query
  })
}

export function deleteById(query) {
  return fetch({
    url: '/alarmContent/delete',
    method: 'POST',
    params: query
  })
}

export function queryAlarmContents(query) {
  return fetch({
    url: '/alarmContent/queryAlarmContents',
    method: 'GET',
    params: query
  })
}

export function getAllAlarmContentList(query) {
  return fetch({
    url: '/alarmContent/getAllAlarmContentList',
    method: 'GET',
    params: query
  })
}

export function checkRelat(query) {
  return fetch({
    url: '/alarmContent/checkRelat',
    method: 'GET',
    params: query
  })
}
